describe("Date", function() {

    describe("toStringDMY", function() {

        it("deveria converter para string corretamente", function() {
            var stringDMY = new Date(2014, 08, 19).toStringDMY();
            expect(stringDMY).toEqual('19/09/2014');
        });

    });

    describe("fromStringDMY", function() {

        it("deveria parsear string corretamente", function() {
            var date = Date.fromStringDMY('19/09/2014');
            expect(date.toStringDMY()).toEqual('19/09/2014');
        });

    });

    describe("ehHoje", function() {

        it("deveria reconhecer o dia de hoje", function() {
            expect(new Date().isToday()).toBeTruthy();
        });

    });

});
